/*******************************************
  Jose Andres Lara Vecino

  Author       : $Author: cainlara@gmail.com $
  Last CheckIn : $Date: 2012-06-07 19:14:46 +0000 (Thu, 07 Jun 2012) $
  Revision     : $Revision: 61 $
*******************************************/

package gui.suites;

import java.awt.BorderLayout;

import javax.swing.JPanel;
import javax.swing.JSplitPane;

/**
 * Panel contenedor del modulo de suites.
 * 
 * @author jose.lara 06.06.2012
 *
 */
public class SuitesPanel extends JPanel {
    private static final long serialVersionUID = 7221921415834700010L;
    
    private JSplitPane splitPanel               = null;
    private SuitesArbolPanel arbolPanel         = null;
    
    public SuitesPanel() {
        super();
        add(getSplitPanel(), BorderLayout.CENTER);
    }
    
    private JSplitPane getSplitPanel() {
        if(splitPanel == null) {
            splitPanel = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT);
            splitPanel.setLeftComponent(getArbolPanel());
        }
        
        return splitPanel;
    }
    
    private SuitesArbolPanel getArbolPanel() {
        if(arbolPanel == null) {
            arbolPanel = new SuitesArbolPanel();
        }
        
        return arbolPanel;
    }

}
